<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="page" value="#{pcPurchaseReqItemBean.page}"/>
		<f:event type="preRenderView" listener="#{pcPurchaseReqItemBean.paginate}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Search Pc Purchase Req Item entities"/>

	<ui:define name="header">
		Pc Purchase Req Item
	</ui:define>

	<ui:define name="subheader">
		Search Pc Purchase Req Item entities
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="search">
			<f:validateBean disabled="true">
				<h:panelGroup styleClass="search">

					<h:panelGrid columnClasses="label,component,required" columns="3">
						<h:outputLabel for="pcPurchaseReqItemBeanExampleMmItem" value="Mm Item:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{mmItemBean.converter}" id="pcPurchaseReqItemBeanExampleMmItem" value="#{pcPurchaseReqItemBean.example.mmItem}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmItemBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="pcPurchaseReqItemBeanExampleMmItem" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="pcPurchaseReqItemBeanExamplePcPurchaseReq" value="Pc Purchase Req:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{pcPurchaseReqBean.converter}" id="pcPurchaseReqItemBeanExamplePcPurchaseReq" value="#{pcPurchaseReqItemBean.example.pcPurchaseReq}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{pcPurchaseReqBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="pcPurchaseReqItemBeanExamplePcPurchaseReq" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="pcPurchaseReqItemBeanExampleSysUom" value="Sys Uom:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{sysUomBean.converter}" id="pcPurchaseReqItemBeanExampleSysUom" value="#{pcPurchaseReqItemBean.example.sysUom}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysUomBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="pcPurchaseReqItemBeanExampleSysUom" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="pcPurchaseReqItemBeanExamplePrSupplierItemCode" value="Pr Supplier Item Code:"/>
						<h:panelGroup>
							<h:inputText id="pcPurchaseReqItemBeanExamplePrSupplierItemCode" maxLength="50" value="#{pcPurchaseReqItemBean.example.prSupplierItemCode}"/>
							<h:message for="pcPurchaseReqItemBeanExamplePrSupplierItemCode" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="pcPurchaseReqItemBeanExamplePrItemCode" value="Pr Item Code:"/>
						<h:panelGroup>
							<h:inputText id="pcPurchaseReqItemBeanExamplePrItemCode" maxLength="50" value="#{pcPurchaseReqItemBean.example.prItemCode}"/>
							<h:message for="pcPurchaseReqItemBeanExamplePrItemCode" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
					</h:panelGrid>
					<h:panelGroup styleClass="buttons">
						<h:commandLink value="Search" action="#{pcPurchaseReqItemBean.search}" styleClass="btn btn-primary"/>
						<h:commandLink value="Create New" action="#{pcPurchaseReqItemBean.create}" styleClass="btn btn-primary"/>
					</h:panelGroup>
				</h:panelGroup>
			</f:validateBean>
			
			<h:dataTable id="pcPurchaseReqItemBeanPageItems" styleClass="data-table" value="#{pcPurchaseReqItemBean.pageItems}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Qty"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReqItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPrQty" value="#{_item.prQty}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Ppu"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReqItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPrPpu" value="#{_item.prPpu}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Status Inc Vat"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReqItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPrStatusIncVat" value="#{_item.prStatusIncVat}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Vat Perc Val"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReqItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPrVatPercVal" value="#{_item.prVatPercVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Vat Val"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReqItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPrVatVal" value="#{_item.prVatVal}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<ui:include src="/resources/scaffold/paginator.xhtml">
				<ui:param name="paginatorBean" value="#{pcPurchaseReqItemBean}"/>
			</ui:include>
		</h:form>
			
	</ui:define>

</ui:composition>
